package net.xdclass.service;

import net.xdclass.enums.CouponCategoryEnum;
import net.xdclass.model.CouponDO;
import com.baomidou.mybatisplus.extension.service.IService;
import net.xdclass.request.NewUserCouponRequest;
import net.xdclass.until.JsonData;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 二当家小D
 * @since 2022-02-08
 */
public interface CouponService extends IService<CouponDO> {
    /**
     * 分页查询优惠券
     *
     * @param page
     * @param size
     * @return
     */
    Map<String, Object> pageCouponActivity(int page, int size);

    /**
     * 领卷接口
     *
     * @param couponId
     * @param promotion
     * @return
     */
    JsonData addCoupon(long couponId, CouponCategoryEnum promotion);

    JsonData initNewUserCoupon(NewUserCouponRequest newUserCouponRequest);
}
